import 'package:flutter/material.dart';
import 'package:flutter_demo/stateful/StatefulWidgetDemo.dart';
import 'basic-ui/CupertinoDemo.dart';
import 'basic-ui/GridViewDemo.dart';
import 'basic-ui/ListViewDemo.dart';
import 'basic-ui/SingleChildScrollView.dart';
import 'http/DioHttpDemo.dart';

class HomeWidget extends StatelessWidget {
  const HomeWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      /* 设置应用头部 */
      appBar: AppBar(
        title: const Text('首页'),
        centerTitle: true, /* 是否居中标题 */
        leading: const Icon(Icons.menu), /* 左侧图标 */
        actions: const [ /* 右侧 更多操作 */
          Icon(Icons.settings),
        ],
        elevation: 100, /* 头部阴影 */
      ),
      // body: const BodyWidget(),
      body: const MyState(),
    );
  }
}

